import { createAction } from 'redux-actions'
import { editUserInfoRequest } from '../../../../service/user-info-controller'

export const DOREQUESTEDIT = payload => {
  return new Promise(resolve => {
    editUserInfoRequest({ ...payload }).then(({ data }) => {
      const { networkerror, entry, status, message } = data
      resolve({
        status,
        message
      })
    })
  })
}
